package com.woniuxy.mapper;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    @Select("select * from user where user_id=#{userId}")
    User findUserInfoByUserId(Integer userId);

    @Update("update user set name=#{name},phone=#{phone},email=#{email},avatar=#{avatar},description=#{description},address=#{address} where user_id=#{userId}")
    void updateByUserId(User user);
}
